package com.song.shop.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
/**
 *  Direct 模式
 * @author song
 *
 */
@Component
@RabbitListener(queues = "helloQueue")
public class HelloReceiver2 {

    @RabbitHandler
    public void process(String hello) {
    	//System.out.println("_---------------------------------");
        System.out.println("---Receiver2  : " + hello);
    }

}
